package com.business.wechat.bean;

import java.util.Date;

import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: fengjian
 * @date: 2019/01/11
 * @description:
 */
@Table(name = "WX_USER", description = "微信用户信息表")
public class WxUserBean extends ModelBean {

	@Column(pk = true, type = Type.变长文本, description = "openid", canNull = false, size = 50)
	private String openId;

	/** 与WX_CONFIG表中的项目名称projectName保持一致 */
	@Column(type = Type.变长文本, description = "微信名称", size = 30)
	private String weixinName;

	public static int SUBSCRIBED = 1;
	public static int SUBSCRIBED_NO = 2;
	/** 1：已关注；2：取消关注 */
	@Column(type = Type.数字整型, description = "是否已经关注")
	private int subscribe;

	@Column(type = Type.变长文本, description = "昵称", size = 50)
	private String nickname;

	@Column(type = Type.数字整型, description = "年龄", size = 50)
	private int sex;

	@Column(type = Type.变长文本, description = "语言", size = 50)
	private String language;

	@Column(type = Type.变长文本, description = "城市", size = 50)
	private String city;

	@Column(type = Type.变长文本, description = "省份", size = 50)
	private String province;

	@Column(type = Type.变长文本, description = "国家", size = 50)
	private String country;

	@Column(type = Type.变长文本, description = "头像", size = 200)
	private String headimgUrl;

	@Column(type = Type.日期时间, description = "关注时间")
	private transient Date subscribeTime;

	@Column(type = Type.变长文本, description = "唯一编号", size = 50)
	private String unionId;

	@Column(type = Type.变长文本, description = "标注", size = 50)
	private String remark;

	@Column(type = Type.数字整型, description = "分组编号", size = 11)
	private int groupId;

	@Column(type = Type.变长文本, description = "编号", size = 50)
	private String tagIds;

	@Column(type = Type.变长文本, description = "编号", size = 50)
	private String privileges;

	@Column(type = Type.变长文本, description = "密码", size = 50)
	private String password;

	@Column(type = Type.变长文本, description = "token", size = 50)
	private String token;

	@Column(type = Type.变长文本, description = "姓名", size = 50)
	private String userName;

	@Column(type = Type.变长文本, description = "手机号", size = 50)
	private String mobile;

	@Column(type = Type.日期时间, description = "生日")
	private Date birthday;

	@Column(type = Type.变长文本, description = "推荐编号", size = 50)
	private String recommendNumber;

	@Column(type = Type.变长文本, description = "推荐人", size = 50)
	private String fromId;

	@Column(type = Type.变长文本, description = "推荐编码地址", size = 50)
	private String qrcode;

	public int getSubscribe() {
		return subscribe;
	}

	public void setSubscribe(int subscribe) {
		this.subscribe = subscribe;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getHeadimgUrl() {
		return headimgUrl;
	}

	public void setHeadimgUrl(String headimgUrl) {
		this.headimgUrl = headimgUrl;
	}

	public Date getSubscribeTime() {
		return subscribeTime;
	}

	public void setSubscribeTime(Date subscribeTime) {
		this.subscribeTime = subscribeTime;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	public String getTagIds() {
		return tagIds;
	}

	public void setTagIds(String tagIds) {
		this.tagIds = tagIds;
	}

	public String getPrivileges() {
		return privileges;
	}

	public void setPrivileges(String privileges) {
		this.privileges = privileges;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getRecommendNumber() {
		return recommendNumber;
	}

	public void setRecommendNumber(String recommendNumber) {
		this.recommendNumber = recommendNumber;
	}

	public String getFromId() {
		return fromId;
	}

	public void setFromId(String fromId) {
		this.fromId = fromId;
	}

	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getWeixinName() {
		return this.weixinName;
	}

	public void setWeixinName(String weixinName) {
		this.weixinName = weixinName;
	}
}